import service from '@/api'

export function getBdAccountList(params) {
  return service({
    url:'/index/bdAccountList',
    method:'GET',
    data:params,
  })
}

export function getAllBdAccountList(params) {
  return service({
    // url:'/index/allBdAccountList',
    url: '/index/getBdAccountByOpt',
    method:'POST',
    data: params,
  })
}

export function addBdAccount(params){
  return service({
    url:'/index/addBdAccount',
    method:'POST',
    data:params,
  })
}

export function delBdAccount(params){
  return service({
    url:'/index/delBdAccount',
    method:'POST',
    data:params,
  })
}

export function editBdAccount(params){
  return service({
    url:'/index/editBdAccount',
    method:'POST',
    data:params,
  })
}

export function getOptimizerList(params){
  return service({
    url:'/index/getOptimizerList',
    method:'POST',
    data:params,
  })
}

export function chBdAccountOpt(params){
  return service({
    url:'/index/chBdAccountOpt',
    method:'POST',
    data:params,
  })
}

export function getAccountByProduct(params) {
  return service({
    url: '/index/getAccountByProduct',
    method: 'POST',
    data: params
  })
}

export function mainProduct(params) {
  return service({
    url: '/index/mainProduct',
    method: 'POST',
    data: params
  })
}